#include<string.h>
#include<iostream>
#include <iomanip>
#include <algorithm>
using namespace std;
#define N 100
int main() {
    int n, i, m = 0, x, a[N];
    cin >> n;
    for (i = 0; i < n; i++) {
        cin >> a[i];
    }
    cin >> x;
    for (i = 0; i < n; i++) {
        if (a[i] == x)
            m++;
    }
    cout << m << endl;
    return 0;
}
